<?php
/* @var $this SiteController */
/* @var $model ResetPasswordForm */
/* @var $form TbActiveForm */
$this->pageTitle = '重置密码';
?>

<div class="sign sign-reset-password">
	<h1>重置密码</h1>
	<?php $this->widget('bootstrap.widgets.TbAlert'); ?>

	<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
		'id' => 'reset-password-form',
		'enableClientValidation' => true,
		'clientOptions' => array(
			'validateOnSubmit' => true,
		),
	)); ?>

	<?php echo $form->passwordFieldRow($model, 'password', array('class' => 'input-block-level')); ?>

	<?php echo $form->passwordFieldRow($model, 'password_repeat', array('class' => 'input-block-level')); ?>

	<div class="text-right">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType' => 'submit',
			'type' => 'primary',
			'label' => '确定',
		)); ?>
	</div>
	<?php $this->endWidget(); ?>

	<p class="sign-nav">
		<?php echo Chtml::link('登录', array('login')) ?>
		<br>
		<?php echo Chtml::link('&larr;回到前台', Yii::app()->getBaseUrl()); ?>
	</p>
</div>